<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>后台管理 -- Talking</title>
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<link rel="stylesheet" href="./static/css/style.css" type="text/css" />
<link rel="stylesheet" href="./static/css/blockUI.css" type="text/css" />
<script type="text/javascript" src="./static/js/jquery-1.3.min.js"></script>
<script type="text/javascript" src="./static/js/jquery.form.js"></script>
<script type="text/javascript" src="./static/js/common.js"></script>
<script type="text/javascript" src="./static/js/jquery.blockUI.js"></script>
<script>
$(document).ready(function(){    
    getMenus('welcome');         
	$('#container .top .nav_content a').click(function(){
		$('#container .top .nav_content a').removeClass('active');
		$(this).addClass('active');
	});
    
	$('#container .main_content_left a').live('click',function(){ 
		$('#container .main_content_left a').removeClass('active');
		$(this).addClass('active');
	});
});
function resizeFrame(){
    var height = $('iframe').contents().find("body").height() + 40;
    $('.main_content').height(height < 500 ? 500 : height);
    
    var main_content_height=$('#container .main_content').css('height');
    $('#container .main_content_left').css('height',main_content_height);
}
</script>
</head>

<body>
<div id="container">
	<div class="top">
		<table>
			<tr>
				<td width="30%" align="left"><img src="./static/images/logo2.gif" /></td>
				<td width="70%" align="right" valign="bottom">
				管理员:  <span>{{$admin}}</span>&nbsp;&nbsp;
			 	</td>
			</tr>
		</table>
		<div class="nav">
			<div class="nav_content">
				<div><a href="#welcome" onclick="getMenus('welcome')" class="active">欢迎</a></div>
				<div><a href="#global" onclick="getMenus('global')">全局</a></div> 
				<div><a href="#bar" onclick="getMenus('bar')">贴吧</a></div>
				<div><a href="#user" onclick="getMenus('user')">用户</a></div>
				<div><a href="#post" onclick="getMenus('post')">帖子</a></div>
				<div><a href="#system" onclick="getMenus('system')">系统</a></div>
				<div class="logout"><a href="./logout.php">退出</a></div>
			</div>
		</div>
	</div>
	<div class="main">
		<div class="main_content">
			<div class="main_content_left">
			</div>
			<div class="main_content_right">
			<iframe frameborder="0" id="frameContent" name="main" onload="javascript:resizeFrame()">
			</iframe>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="bottom">                                                                                 
&copy; 2011 <a href="#">Talking</a>. All rights reserved
	</div>
    <div id="box" style="display: none;"> 
</div>
</div>
</body>
</html>